package tech.bmatch.inquire;

import tech.bmatch.inquire.model.PhoneInfo;
import tech.bmatch.inquire.service.Impl.PhoneRecognizeServiceImpl;
import tech.bmatch.inquire.service.PhoneRecognizeService;

import java.util.Scanner;

/**
 * @program:InquirePhoneNum
 * @author:LinJinhao
 * @create:2018-11-10 13:26
 **/
public class App {
    public static void main(String[] args) {
        PhoneRecognizeService service = new PhoneRecognizeServiceImpl();

        Scanner scanner = new Scanner(System.in);

        while(scanner.hasNext()){
            PhoneInfo phoneInfo = service.onCall(scanner.next());
            System.out.println(phoneInfo.getProvince()+"-"+phoneInfo.getCity());
        }
    }
}
